/**
 * @file LinesTool.hpp
 *
 * @date 18/12/2011
 * @author Tales 
 *
 */

#ifndef _CONTROLLER_LINESTOOL_HPP_
#define _CONTROLLER_LINESTOOL_HPP_

#include "Tool.hpp"
#include <deque>

namespace yep
{
using namespace yep;


class LinesTool: public Tool
{
public:
	LinesTool();
	virtual ~LinesTool();

	virtual void start();

	virtual void end();

	virtual void pressed(pair<int, int> pos, bool leftButton, bitset<5> state);

	virtual void released(pair<int, int> pos,bool leftButton, bitset<5> state);

	virtual void moved(pair<int, int> pos, pair<int, int> offset, std::bitset<5> state);
private:
	bool drawing;
	bool multiple;
	deque<pair<int, int> >vertices;
};

} /* namespace yep */
#endif /* _CONTROLLER_LINESTOOL_HPP_ */
